package com.kkb.hbase.mr.demo3UDPartitioner;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * k2 v2
 * k3 v3
 */
public class FlowReducer extends Reducer<Text,FlowBean,Text,Text> {
    @Override
    protected void reduce(Text key, Iterable<FlowBean> values, Context context) throws IOException, InterruptedException {
        //这里什么也不干，直接写出去
        for (FlowBean value: values){
            context.write(key,new Text(value.toString()));
        }
    }
}
